﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Tour.BLL;
using Tour.DAL;


public partial class Hotel_Intro : System.Web.UI.Page
{
    public string ConfigTextId { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        GetPropertyFromQueryString();
        if (!IsPostBack)
        {
            LoadData();
        }
    }
    void GetPropertyFromQueryString()
    {
        if (Request["ConfigTextId"] != null)
            ConfigTextId = Request["ConfigTextId"].ToString();
        else
            ConfigTextId = null;
    }
    void LoadData()
    {
        //int TotalRow = 0;
        //rpt.DataSource = TblConfigManager.CreateInstant().SelectConfigBy(null, ConfigTextId, "", "");
        rpt.DataSource = TblConfigManager.CreateInstant().SelectConfigOneBy(null, ConfigTextId, "", "");
        rpt.DataBind();
    }  
}